import request from '@/utils/request'

// 查询边界表列表
export function listBoundary(query) {
  return request({
    url: '/boundary/boundary/list',
    method: 'get',
    params: query
  })
}

// 查询边界表详细
export function getBoundary(id) {
  return request({
    url: '/boundary/boundary/' + id,
    method: 'get'
  })
}

// 新增边界表
export function addBoundary(data) {
  return request({
    url: '/boundary/boundary',
    method: 'post',
    data: data
  })
}

// 修改边界表
export function updateBoundary(data) {
  return request({
    url: '/boundary/boundary',
    method: 'put',
    data: data
  })
}

// 删除边界表
export function delBoundary(id) {
  return request({
    url: '/boundary/boundary/' + id,
    method: 'delete'
  })
}
